-- GENERATED SPELL FOR [Magister Hawkhelm] --


function spell0_6647(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(18651,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6647', 607, 1)
end

function spell1_6647(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6647', 625, 1)
end

function Sorts_6647(pUnit, Event)
local choix_sorts_6647 = math.random(0, 1)
if choix_sorts_6647 == 0 then
pUnit:RegisterEvent('spell0_6647', 1, 1)
end
if choix_sorts_6647 == 1 then
pUnit:RegisterEvent('spell1_6647', 1, 1)
end
end

function mob6647_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6647', math.random(1500, 3000), 1)
end

function mob6647_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6647_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6647_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6647, 1, 'mob6647_Action')
RegisterUnitEvent(6647, 2, 'mob6647_Leave')
RegisterUnitEvent(6647, 3, 'mob6647_Kill')
RegisterUnitEvent(6647, 4, 'mob6647_Die')
